<?php


$blog='NULL';
$blogdata='NULL';
$optiondomain = 'system';
$_REQUEST['b']='system';

require('../private.php');
require(CONFIGPATH . 'wp-config.php');
require_once( ABSPATH . WPINC . '/registration-functions.php');

get_currentuserinfo();
$SITE_TITLE = get_settings('site_title');

if (!$userdata->user_admin){
        exit();
}


include("../../lib/db.lib");
include("../../lib/std.lib");

$fh=fopen("link_on_top.txt","r");
while($buffer=fread($fh,4096)){
	$str.=$buffer;
}
fclose($fh);

?>


<HTML><HEAD><TITLE>ADMIN CONTROL</TITLE>
<META NAME='KEYWORDS' CONTENT=''/>
<LINK REL="stylesheet" HREF="../wiki.css">
<META NAME="description" content="">
<meta http-equiv="Content-Style-Type"  content="text/css">
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Content-Type"   content="text/html; charset=UTF-8">
</HEAD>
<body>
<?php include("../portal_header.php");?>
<br>
<h2>Update the top link file</h2>

<form action="d_set_links.php" method="post">
<textarea name="content" rows=15 cols=110>
<?php echo $str; ?>
</textarea>
<br>
<!--
Password : <input type="password" name="pwd" value"" size=14> 
Your name: <input type="text" name="user" value"" size=14>
-->
 <input type="submit" name="sub" value="Update it">

</form>
<?php include("copyright.php");?>

</body>
</html>
